import request from '../../utils/request';

export const fetchPageList = (query) => {
    return request({
        url: '/bbs/comment/page',
        method: 'post',
        data: query
    })
}

export const addComment = (query) => {
    return request({
        url: '/bbs/comment/save',
        method: 'post',
        data: query
    })
}

export const getDetails = (query) => {
    return request({
        url: '/bbs/comment/details',
        method: 'post',
        data: query
    })
}

export const updateComment = (query) => {
    return request({
        url: '/bbs/comment/update',
        method: 'post',
        data: query
    })
}

export const deleteComment = (query) => {
    return request({
        url: '/bbs/comment/delete',
        method: 'post',
        data: query
    })
}
